<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
    <title>{$title}-
        <wowocms:webtitle /></title> 

    <meta name="keywords" content="<wowocms:keywords />" />
    <meta name="description" content="<wowocms:description />" />
    <meta name="generator" content="0771MC" />
    <meta name="author" content="WWW.0771MC.COM" />
    <meta name="MSSmartTagsPreventParsing" content="True" />
    <meta http-equiv="MSThemeCompatible" content="Yes" />
    <base href="<wowocms:weburl />
    " />
    <link rel="stylesheet" type="text/css" href="__ROOT__/Style/css/style_2_common.css?dv1" />
    <link rel="stylesheet" type="text/css" href="__ROOT__/Style/css/style_2_portal_view.css?dv1" />

    <meta name="application-name" content="0771MC" />
    <script src="__PUBLIC__/js/jquery-1.7.2.min.js" language="javascript" type="text/javascript"></script>
    <script src="__ROOT__/Style/js/jquery.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/js/jquery.lazyload.js" language="javascript" type="text/javascript"></script>
    <script type="text/javascript" src="__PUBLIC__/jquerynotic/common.js"></script>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/jquerynotic/jnotic.css">
    <script type="text/javascript">
    mc = jQuery.noConflict();
    </script>

    <SCRIPT language=javascript>
    mc(function() {
        mc("img.lazy").lazyload({
            effect: "fadeIn",
        });

        mc('#addtocart').click(function(){
            mc.ajax({
                url:'{:U('User/Cart/add')}',
                type:'post',
                dataType:'json',
                data: "product_id=" + {$content['id']} + "&product_title=" + "{$content['title']}" + "&product_price=" + {$content['price']},
                    success:function(data){
                        
                        if (data.status) {
                            popStatus(1, data.info, 1.5);
                            mc("#addtocart").attr({"disabled": "disabled"});
                            
                        }else{
                            popStatus(2, data.info, 1.5);
                        }
                    }
            });
        });
    });
   
    window.onerror = function() {
        return true;
    }
    </SCRIPT>
    <!--[if IE 6]>
    <script src="__PUBLIC__/js/DD_belatedPNG_0.0.8a-min.js" type="text/javascript" type="text/javascript"></script>
    <script type="text/javascript">
       EvPNG.fix('div, ul, img, li, input');  
       EvPNG.fix('.png'); 
    </script>
    <![endif]-->

</head>

<body id="nv_portal" class="pg_view" onkeydown="if(event.keyCode==27) return false;">
    <div id="append_parent"></div>
    <div id="ajaxwaitid"></div>
    <div id="insidemain">
        <div class="inside_top">

            <div id="toptb" class="cl">
                <div class="wp">
                    <div class="z">

                        <a href="javascript:;" onclick="setHomepage('<wowocms:weburl />
                        ');">设为首页
                    </a>
                    <a href="<wowocms:weburl />
                    " onclick="addFavorite(this.href, '
                    <wowocms:webtitle />
                    ');return false;">收藏本站
                </a>

            </div>
            <div class="y">
                    <if condition="get_cookie('uid') neq null">
                          <a href="{:U('User/Center/index')}">会员中心</a><a href="{:U('User/Index/logout')}">退出登录</a>
                        <else/>
                          <a href="{:U('User/Index/index')}">登录</a><a href="{:U('User/Index/regs')}">注册</a>
                        </if>

            </div>
        </div>
    </div>
    <div class="top">
        <div id="head">

            <div class="head png">
                <div id="dh">
                    <div class="logo">
                        <a href="./" title="<wowocms:webtitle />
                        ">
                        <img src="__ROOT__/Style/images/logo.png" alt="<wowocms:webtitle />
                        " border="0" width="160px" height="60px" />
                    </a>
                </div>
                <div id="nav">
                    <ul>
                        <li id="mn_portal">
                            <a href="{:C('cfg_weburl')}" hidefocus="true" title="Portal">
                                网站首页
                                <span>Portal</span>
                            </a>
                        </li>

                        <?php $cates=getCategory(1); $Category = new \Think\Category(); 
                                    $scend=$Category::getParents($cates,$content['cid']); ?>
                        <wowocms:navlist typeid='0'>

                            <li id="mn_P1" <if condition="($navlist['id'] eq $cid) or ($navlist['id'] eq $scend[0]['id']) ">class="a"</if>
                            >
                            <a href="{$navlist.url}" hidefocus="true">{$navlist.name}</a>
                        </li>

                    </wowocms:navlist>

                </ul>
            </div>
            <div class="clearfix"></div>

        </div>
    </div>

</div>
</div>

<div id="wp" class="wp">
<div class="inside_banner png">产品详情</div>

<link type="text/css" rel="stylesheet" href="__ROOT__/Style/css/insidepage.css">
<link type="text/css" rel="stylesheet" href="__ROOT__/Style/css/view.css">

<div class="main">
    <div class="left_main">
        <div class="left_banner">
            <img width="670" height="164" src="__ROOT__/Style/images/news_img.jpg"></div>
        <div class="inside_h1">{$content.title}</div>
        <div class="news_txt">
            Time：{$content.publishtime|date='Y-m-d H:i:s',###} &nbsp;&nbsp;View：
            <wowocms:click />
            &nbsp;&nbsp;
        </div>
        <div class="about_content">
            <style type="text/css">
                            .detail{
                                width: 685px;
                                height: 220px;
                                padding: 8px;
                                border-bottom: 2px solid #eee;
                                display: block;
                            }
                            .dpic{
                                width: 260px;
                                margin-right: 20px;
                                float: left;
                            }
                            .shuxing{
                                float: right;
                                font-size: 14px;
                            }
                            .shuxing ul{
                                display: block;
                                width: 400px;
                            }
                            .shuxing li{
                               line-height: 26px;
                            }
                            .shuxing em{
                                color: rgb(0, 153, 68);
                            }
                            .content{
                                padding: 8px;
                            }
                            .addtocart{
                                border:0px;
                                display: block;
                                width: 80px;
                                height: 30px;
                                background: rgb(0, 153, 68);
                                color: #fff;
                                font-weight: bold;
                            }
                            .addtocart:hover{
                                background: #FF6100;
                            }
                            </style>

            <div class="detail">
                <div class="dpic">
                    <img src="{$content.litpic|default_pic}" alt="{$content.title}" width="253px" height="187px"></div>
                <div class="shuxing">
                    <ul>
                        <li>
                            价格： <em>{$content.price}</em>
                        </li>
                        <li>
                            品牌： <em>{$content.brand}</em>
                        </li>
                        <li>
                            单位： <em>{$content.units}</em>
                        </li>
                        <li>
                            规格： <em>{$content.norms}</em>
                        </li>
                        <li>
                            所属分类：
                            <em><wowocms:type typeid="$content['cid']">{$type.name}</wowocms:type></em> 
                        </li>
                        <li>
                            发布时间：
                            <em>{$content.publishtime|date='Y-m-d H:i:s',###}</em>
                        </li>
                        <li>
                            <input type="button" id="addtocart" class="addtocart" value="加入购物车">
                        </li>
                        <li>
                            <div class="bdsharebuttonbox">
                                <a href="#" class="bds_more" data-cmd="more"></a>
                                <a title="分享到QQ空间" href="#" class="bds_qzone" data-cmd="qzone"></a>
                                <a title="分享到新浪微博" href="#" class="bds_tsina" data-cmd="tsina"></a>
                                <a title="分享到腾讯微博" href="#" class="bds_tqq" data-cmd="tqq"></a>
                                <a title="分享到人人网" href="#" class="bds_renren" data-cmd="renren"></a>
                                <a title="分享到微信" href="#" class="bds_weixin" data-cmd="weixin"></a>
                                <a title="分享到百度贴吧" href="#" class="bds_tieba" data-cmd="tieba"></a>
                                <a title="分享到QQ好友" href="#" class="bds_sqq" data-cmd="sqq"></a>
                                <a title="分享到打印" href="#" class="bds_print" data-cmd="print"></a>
                                <a title="分享到复制网址" href="#" class="bds_copy" data-cmd="copy"></a>
                            </div>
                            <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"1","bdSize":"24"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
                        </li>
                    </ul>
                </div>
            </div>

            <div class="content">
                <foreach name="content['pictureurls']" item="v">
                    <img src="__PUBLIC__/js/grey.gif" class="lazy" data-original="{$v.url}"  border="0"/>
                </foreach>
            {$content.content}
            </div>
            

            <!--   comment begin  -->
                <link rel="stylesheet" type="text/css" href="__ROOT__/Style/css/commentcss.css">
                <if condition='$commentflag eq 1'>
     <div class="comment-box">
        <h3>评论(<span class="review-count">0</span>)</h3>
        
        <div class="more-comment">
            后面还有<span id="more_count"></span>条评论，<a href="javascript:get_review();">点击查看>></a>
        </div>
        <form action="{:U('Home/Comment/add')}" method="post" class="comment-item" id="reviewForm"  autocomplete="off">
        <a name="reply_" id="reply_"></a>
            <input type="hidden" name="post_id" value="{$content.id}"/>
            <input type="hidden" name="model_id" value="{$cate.modelid}" />
            <input type="hidden" name="title" value="{$content.title}"/>
            <input type="hidden" name="review_id" value="0" />
            <input type="hidden" name="cid" value="{$content.cid}">
            <input type="hidden" name="ename" value="{$cate.ename}">

            <span class="avatar"><img src="{:default_pic(get_cookie('face'))}" alt="" id="my_avatar"></span>
            <div class="comment-bd" id="review">
                <div class="comment-textarea">
                    <textarea name="content" placeholder="我也来说两句..."></textarea>
                </div>

                <if condition="C('cfg_verify_review') eq 1">
                <div class="comment-vcode">
                    
                    <input type="text" name="vcode" class="inp_small" />
                    
                </div>
                </if>
            </div>
            <div class="comment-ft">
                <input type="submit" class="btn_blue" value="评论&nbsp;[&nbsp;Ctrl+Enter&nbsp;]">
            </div>
        </form>
        
        <div class="login-tip" style="display:none;">
            您可以选择 <a href="{:U('User/Index/index')}">登录</a> | <a href="{:U('User/Index/regs')}">立即注册</a>
        </div>
    </div>
    <script type="text/javascript" src="__ROOT__/Style/js/review.js"></script>
    <script type="text/javascript" language="javascript"> 
        var get_review_url = "{:U('Home/Comment/getlist')}";
        var post_review_url = "{:U('Home/Comment/add')}";   
        
    </script>
    </if>
    <!--comment end-->



        </div>
    </div>
    <include file="blue004/Public/right_main" />

</div>
</div>
</div>

<div class="inside_bottom"></div>

</div>
<include file="blue004/Public/foot" />

</body>

</html>